]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
screenShield: focus login screen after lifting shield
authorRay Strode <rstrode@redhat.com>
Mon, 6 Oct 2014 20:38:03 +0000 (16:38 -0400)
committerRay Strode <rstrode@redhat.com>
Tue, 7 Oct 2014 14:54:48 +0000 (10:54 -0400)
This commit ensures the login screen gets focused after
the screen shield is raised.

The code affects the unlock screen as well, but it's
less important since the unlock screen gets destroyed
and recreated each time the curtain moves, so it
has an opportunity to take focus on its own.

https://bugzilla.gnome.org/show_bug.cgi?id=708105

js/ui/screenShield.js

index 6c1bc5e7aeed200e5dfa3cdd8c43d842c974f4e5..1c1dca6cf1a5dfea450035a5b9f5fe6bc70cdb4c 100644 (file)
@@ -919,6 +919,9 @@ const ScreenShield = new Lang.Class({
 
         this._lockScreenState = MessageTray.State.HIDDEN;
         this._lockScreenGroup.hide();
+
+        this._dialog.actor.grab_key_focus();
+        this._dialog.actor.navigate_focus(null, Gtk.DirectionType.TAB_FORWARD, false);
     },
 
     _hideLockScreen: function(animate, velocity) {